// 1. 引入模块
import Vue from 'vue'
import Vuex from 'vuex'

import home from './module/home'
import search from './module/search'
import detail from './module/detail'
import user from './module/user'
import trade from './module/trade'

// 2. 注册Vuex
Vue.use(Vuex)


// 添加相应的模块 并导出
export default new Vuex.Store({
  modules: {
    home,
    search,
    detail,
    user,
    trade
  }
})